/*
 * @Description: 
 * @Date: 2025-08-15 10:06:26
 * @LastEditTime: 2025-09-02 18:06:46
 */
import Cookies from 'js-cookie'

const TokenKey = 'do-business-839-H5-Admin-Token'
const TokenExpireTimeKey = 'do-business-839-H5-Token-Expire-Time'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function removeTokenExprieTime() {
  return Cookies.remove(TokenExpireTimeKey)
}
export function setTokenExprieTime(tokenExpireTime) {
  return Cookies.set(TokenExpireTimeKey, tokenExpireTime)
}

export function getTokenExprieTime() {
  return Cookies.get(TokenExpireTimeKey)
}

export function setPhone(phone){
  return Cookies.set('phone', phone)
}
export function getPhone() {
  return Cookies.get('phone')
}